<!DOCTYPE html>
<html>
<head lang="zh">
    <meta charset="UTF-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    {% block meta4phone %}
        <meta content="telephone=no,email=no" name="format-detection">
        <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
    {% endblock %}
    <meta http-equiv="content-type" content="text/html">
    <meta http-equiv="pragma"   content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache,must-revalidate" />
    <meta http-equiv="expires" content="Wed,26 Feb 1997 08:21:57 GMT" />
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="../public/css/mui.min.css" />
    {% block beforeCssStyle %}{% endblock %}
    <link rel="stylesheet" type="text/css" href="../public/css/main.css"/>
    {% block cssStyle %}{% endblock %}
</head>
<body {% block body-class %}{% endblock %}>
{% block root %}<section id="root"></section>
{% endblock %}
{% block body %}{% endblock %}
<script>!function(n,e){var t=n.documentElement,i="orientationchange" in window?"orientationchange":"resize",d=function(){var n=t.clientWidth;if(n){var e=100*(n/375);t.style.fontSize=e+"px"}};n.addEventListener&&(e.addEventListener(i,d,!1),n.addEventListener("DOMContentLoaded",d,!1))}(document,window); </script>
<!--<script src="../public/js/lib/react.js"></script>-->
<script src="//cdn.bootcss.com/react/0.13.1/react.min.js"></script>
<script src="//cdn.bootcss.com/zepto/1.1.6/zepto.min.js"></script>
<script>
    var liefeng = {
        userInfo:{},
        os:{},
        imgPreUrl:'http://wuye.oss-cn-shenzhen.aliyuncs.com/'//阿里云图片前缀
    };// 全局变量
    React.initializeTouchEvents(true);

    var ua = navigator.userAgent;
    var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
    if (android) {
        liefeng.os.android = true;
        liefeng.os.name = "android";
        liefeng.os.version = android[2];
        liefeng.os.isBadAndroid = !(/Chrome\/\d/.test(window.navigator.appVersion));
    }
    var iphone = ua.match(/(iPhone\sOS)\s([\d_]+)/);
    if (iphone) { //iphone
        liefeng.os.ios = true;
        liefeng.os.name = "ios";
        liefeng.os.version = iphone[2].replace(/_/g, '.');
    } else {
        var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
        if (ipad) { //ipad
            liefeng.os.ios = true;
            liefeng.os.name = "ios";
            liefeng.os.version = ipad[2].replace(/_/g, '.');
        }
    }

    $(function() {
        var classList = document.body.classList;
        classList.add("lf-" + liefeng.os.name);
        var version = '';
        //var classArray = [];
        if (liefeng.os.version) {
            $.each(liefeng.os.version.split('.'), function (i, v) {
                version = version + (version ? '-' : '') + v;
                classList.add("lf-" + liefeng.os.name + '-' + version);
            });
        }
    });
</script>
<script src="../public/js/lib/common.min.js"></script>
{% block javascript %}{% endblock %}
</body>
</html>
